package o2o.task.user;

import org.springframework.scheduling.annotation.Scheduled;
import o2o.system.data.SYS_SETTINGS;

/**
 * @Description: TODO
 * Created with IntelliJ IDEA.
 * User: Jahnke [1029777564@qq.com]
 * Date: 2018-11-15 20:24
 * To change this template use File | Settings | File Templates.
 */
public class UserDistributeInfoSyncTask {

    @Scheduled(cron = "0 0/5 *  * * ? ")    //每5分钟执行一次
    public void UserDistributeInfoSync() {
        if (null != SYS_SETTINGS.IS_OPEN_DISTRIBUTION && 0 == 1 - SYS_SETTINGS.IS_OPEN_DISTRIBUTION) {//开启分销的话
            UserDistributeInfoSyncUtils.threadDeal();
        }
    }


}
